
import {Button} from 'antd'
import React from "react";
import NewsPublish from "../../../../components/PublishManage/NewsPublish";
import usePublish from "../../../../components/PublishManage/usePublish";

export default function Unpublished() {
    // 1=== 待发布的
    const {dataSource,handlePublish} = usePublish(1)

    return (
        <div>
            <NewsPublish dataSource={dataSource} button={(id)=>
                <Button type="primary" onClick={()=>handlePublish(id)}>
                    发布
                </Button>} >
            </NewsPublish>
        </div>
    )
}